package com.kob.design.singleton.hungry;

/**
 * @Description: 饿汉式:静态成员变量
 * @Author: fyt
 * @Date: 2024/4/15 18:08
 **/
public class Singleton1 {
    private static Singleton1 instance = new Singleton1();

    private Singleton1() {}

    public static Singleton1 getInstance() {
        return instance;
    }
}
